
export const formData = {
    getListUrl: 'education/course/',
    getItemUrl: 'education/course/getItemById/',
    updateUrl: 'education/course/updateAction/',	
    createUrl: 'education/course/createAction/',
    deleteUrl: 'education/course/deleteAction/',
    formKey: 'course',
    updateFieldList: [
        { formType: 'Record', showName: '课程分类', key: 'coursecate', width: 6, label: 'name', value: 'id'},
        { formType: 'RecordMult', showName: '标签', key: 'tags', width: 6, url: 'merchant/tag/', label: 'name', value: 'id'},
        { formType: 'Input', showName: '名称', key: 'name', width: 6, required: true, },
        { formType: 'Upload', showName: '封面', key: 'coverUrl', width: 6, required: true },
        { formType: 'InputNumber', showName: '课时', key: 'hour', width: 6, step: 1, min: 1, max: 9999, required: true},
        { formType: 'DatePicker', showName: '开始时间', key: 'startTime', width: 6, type: 'datetime', format: 'yyyy-MM-dd', valueFormat: 'yyyy-MM-dd', required: true },
        { formType: 'DatePicker', showName: '结束时间', key: 'endTime', width: 6, type: 'datetime', format: 'yyyy-MM-dd', valueFormat: 'yyyy-MM-dd', required: true },
        { formType: 'DatePicker', showName: '报名截止时间', key: 'lastTime', width: 6, type: 'datetime', format: 'yyyy-MM-dd', valueFormat: 'yyyy-MM-dd', required: true },
        { formType: 'RichText', showName: '课程介绍', key: 'intrRichText', width: 12, rows: 24, required: true },
        { formType: 'Option', showName: '状态', key: 'status', width: 6, required: true, defaultValue: '1' },
    ],
    detailFieldList: [
        { formType: 'Upload', showName: '封面', key: 'coverUrl', width: 24, imgW: 200, imgH: 200, required: true },
        { formType: 'Record', showName: '课程分类', key: 'coursecate', width: 6, label: 'name', value: 'id'},
        { formType: 'Input', showName: '名称', key: 'name', width: 6, required: true, },
        { formType: 'InputNumber', showName: '课时', key: 'hour', width: 6, step: 1, min: 1, max: 9999, required: true},
        { formType: 'DatePicker', showName: '开始时间', key: 'startTime', width: 6, type: 'datetime', format: 'yyyy-MM-dd', valueFormat: 'yyyy-MM-dd', required: true },
        { formType: 'DatePicker', showName: '结束时间', key: 'endTime', width: 6, type: 'datetime', format: 'yyyy-MM-dd', valueFormat: 'yyyy-MM-dd', required: true },
        { formType: 'DatePicker', showName: '报名截止时间', key: 'lastTime', width: 6, type: 'datetime', format: 'yyyy-MM-dd', valueFormat: 'yyyy-MM-dd', required: true },
        { formType: 'RichText', showName: '课程介绍', key: 'intrRichText', width: 12, rows: 24, required: true },
    ],
    options: {
        status: [
            {value: 1, label: "草稿"},
            {value: 2, label: "已发布"}
        ],
        isShow: [
            {value: 1, label: "是"},
            {value: 0, label: "否"}
        ]
    },
    dicts: {
        types: {
            '1': "在校生",
            '2': "社会人员"
        }
    }
}
